package com.pronhub.cloud.shop.redis;

public class SeckillKeyPrefix implements KeyPrefix {

    private String prefix;
    private int expireSeconds;
    @Override
    public String getPrefix() {
        return prefix;
    }
    @Override
    public int getExpireSecond() {
        return expireSeconds;
    }
    private SeckillKeyPrefix(String prefix,int expireSeconds){
        this.prefix = prefix;
        this.expireSeconds=expireSeconds;
    }
    //这个是开头
    public static SeckillKeyPrefix SECKILL_STOCK_COUNT = new SeckillKeyPrefix("seckillStockCount:",-1);
    public static SeckillKeyPrefix SECKILL_ORDER = new SeckillKeyPrefix("seckillOrder",-1);
    public static SeckillKeyPrefix SECKILL_GOOD_HASH = new SeckillKeyPrefix("seckillGoodHash",-1);
    public static SeckillKeyPrefix VERIFY_CODE_RESULT = new SeckillKeyPrefix("verifyCodeResult:",3*60);

    public static SeckillKeyPrefix SECKILL_PATH = new SeckillKeyPrefix("seckillPath:",2);


}
